<%@ include file="/html/library/init.jsp" %>

<%
	PortletURL updateBookURL = renderResponse.createActionURL();
	updateBookURL.setParameter(ActionRequest.ACTION_NAME, "updateBook");
%>

<form name='<portlet:namespace/>fm' method="post" action="<%=updateBookURL.toString()%>">
	<table  style="width: 200px;">
		<tr>
			<td>Book title: </td>
			<td><input type="text" name='<portlet:namespace/>bookTitle'/></td>
		</tr>
		<tr>
			<td>Author: </td>
			<td><input type="text" name='<portlet:namespace/>author'/></td>
		</tr>
		<tr>
			<td align="center" colspan="2"><input type="submit" value="Save"/></td>
		</tr>
	</table>
</form> 

<a href='<portlet:renderURL/>'>Go back</a>